//
//  hospitalShowView.m
//  easyHealthy
//
//  Created by yanchao on 15/11/29.
//  Copyright © 2015年 easyHealthTeam. All rights reserved.
//

#import "hospitalShowView.h"
#import "NearbyHospitalMessageModel.h"
@interface hospitalShowView ()<UITableViewDataSource,UITableViewDelegate>


@end

@implementation hospitalShowView

- (instancetype) initWithFrame:(CGRect)frame  andHospitalArray:(NSMutableArray *)hospitalArray{
    self = [super initWithFrame:frame];
    if (self) {
        self = [[NSBundle mainBundle] loadNibNamed:@"hospitalShowView" owner:self options:nil].lastObject;
        UIImageView * hospitalImg = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, 200.0f * SCREEN_SCALE)];
        
        [hospitalImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://tnfs.tngou.net/image%@",[hospitalArray[0] img]]] placeholderImage:nil];
        _hospitalShowTableView.tableHeaderView = hospitalImg;
    }
    return self;
}



- (NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
//    UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:@"cellId"];
//    if (cell == nil) {
//        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"cellId"];
//    }
//    return cell;
    return nil;
}

@end
